package org.example.design.designmode.decoratorpattern.sellbubbles;

/**
 * @Author:         songyafei
 * @Package:        com.des.design.designMode.decoratorPattern.SellBubbles
 * @ClassName:      menuDecorator
 * @Description:     装饰器特点
 *                  1.构造方法传递实例
 * @Param
 * @Exception
 * @CreateDate:     2020/5/22 22:04
 * @UpdateRemark:   The modified content
 * @Version:        1.0
 * @Return :
 **/

public class MenuDecorator extends Menu {

    protected   Menu menu ;

    public MenuDecorator(Menu e) {
        this.menu = e;
    }


    @Override
    protected String getMenu() { return menu.getMenu(); }
}
